package com.yeyks.hotel.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房间日历信息表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="RoomCalendarInfo对象", description="房间日历信息表")
public class RoomCalendarInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "酒店ID")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "房间ID")
    @TableField("room_id")
    private Integer roomId;

    @ApiModelProperty(value = "房源日期yyyy-MM-dd")
    @TableField("date")
    private Date date;

    @ApiModelProperty(value = "原价",hidden = true)
    @TableField("origin_price")
    private Integer originPrice;

    @ApiModelProperty(value = "销售价格")
    @TableField("sale_price")
    private Integer salePrice;

    @ApiModelProperty(value = "抢单底价")
    @TableField("bottom_price")
    private Integer bottomPrice;

    @ApiModelProperty(value = "每天可订房数")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "锁定数",hidden = true)
    @TableField("lock_count")
    private Integer lockCount;

    @ApiModelProperty(value = "默认1，0:不可用  1：可用",hidden = true)
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String HOTEL_ID = "hotel_id";

    public static final String ROOM_ID = "room_id";

    public static final String DATE = "date";

    public static final String ORIGIN_PRICE = "origin_price";

    public static final String SALE_PRICE = "sale_price";

    public static final String BOTTOM_PRICE = "bottom_price";

    public static final String COUNT = "count";

    public static final String LOCK_COUNT = "lock_count";

    public static final String STATUS = "status";

    public static final String CREATE_TIME = "create_time";

}
